package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "ems_additional_operation_config")
public class EmsAdditionalOperationConfig extends Model {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * ycyx策略配置标识deviceCode.dit
     */
    @TableField(value = "pid")
    private String pid;

    /**
     * 判断条件
     */
    @TableField(value = "`condition`")
    private String condition;

    /**
     * 判断值
     */
    @TableField(value = "`value`")
    private String value;

    /**
     * json 含有{data<T>:具体操作的结果数据}
     */
    @TableField(value = "`operation`")
    private String operation;

    /**
     * 策略类型
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModify;
}
